﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using WebApplicationProveedores;
using WebApplicationProveedores.Base_Datos;


namespace WebService
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
           
            return "Hello World";
        }

        [WebMethod]
        public string TestService(string nombre)
        {
            var a = nombre;
            return "Holaaa "+ nombre;
        }

        [WebMethod]
        public float GenerarOrdenCompra(string codigoArticulo, string nombreCliente, int cantidad, string codigoProveedor)
        {
            return BusinessLogic.CrearOrdenCompra(codigoArticulo, nombreCliente, cantidad, codigoProveedor); 
            
        }
    }
}